//
// Created by wang on 2021/6/29.
//

#ifndef ENET_ETH_H
#define ENET_ETH_H

#include "etypes.h"

typedef struct {
    mac dst;
    mac src;
    word type;
}eth_header;

#define ETH_DUMP_MAC(m) do {printf("0x%02X-0x%02X-0x%02X-0x%02X-0x%02X-0x%02X\n", \
(m)[0],(m)[1],(m)[2],(m)[3],(m)[4],(m)[5]);} while(0);
#define ETH_IS_ZERO_MAC(m) (!(m)[0]&&!(m)[1]&&!(m)[2]&&!(m)[3]&&!(m)[4]&&!(m)[5])

#endif //ENET_ETH_H
